package com.gzsxy.esjy.gateway;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 网关启动
 * @date 2021/11/7 19:18
 */
@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
@Slf4j
@EnableScheduling  //开启定时任务
@ComponentScan({"com.gzsxy.esjy.bus","com.gzsxy.esjy.gateway"})
@MapperScan("com.gzsxy.esjy.bus.dao") //日志处理必须扫描
public class GateWayMain {


    public static void main(String[] args) {
        SpringApplication.run(GateWayMain.class,args);
        log.info("GateWay网关启动成功！！！");
    }
}
